package com.wx.mapper;

import com.wx.common.MyMapper;
import com.wx.entity.SysAddress;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface SysAddressMapper extends MyMapper<SysAddress> {

    int batchInsert(List<SysAddress> addressList);

    List<SysAddress> getChildrenByParentCode(String parentCode);

    List<SysAddress> getAll();

    List<SysAddress> queryProvinceAndCity();

    SysAddress queryAddressByCode(String parentCode);
}